package xyz.hubery.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import xyz.hubery.dto.CoinDTO;

import java.util.List;

@FeignClient(name = "finance-service",contextId = "CoinServiceFeign",configuration = OAuthFeignConfig.class, path = "/coins")
public interface CoinServiceFeign {

    @GetMapping("/getCoinName")
    String getCoinName(@RequestParam Long coinId);

    @GetMapping("/list")
    List<CoinDTO> list(@RequestParam List<Long> coinIds);

}
